//引入mockjs文件
let Mock = require('mockjs');
let Random = Mock.Random;

 const ret = () => {
	let data = {
		news: []
	};
	for (let i = 0; i < 10; i++) {
		data.news.push({
			id: i,
			title: Random.cword(8, 20),
			from:Random.cword(2, 6),
			'time': '@color',
		});
	}
	return data;
};
module.exports = ret();
